From 15b569e64dd838f22cc984664b7c19428c37eb18 Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Sun, 8 Apr 2018 18:31:03 +0100 Subject: [PATCH] testmodelbutton: Fix wrongly overridding MB child I was setting a GtkButton:label, which resulted in the ModelButton's own custom children getting lost. That doesn't make for a useful test... --- tests/testmodelbutton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testmodelbutton.c b/tests/testmodelbutton.c index c7268e48c3..b1b6151724 100644 --- a/tests/testmodelbutton.c +++ b/tests/testmodelbutton.c @@ -45,8 +45,8 @@ on_application_activate (GApplication *gapplication, model_button = g_object_new (GTK_TYPE_MODEL_BUTTON, "action-name", "app.beep", + "text", "It’s-a-me! ModelButton", NULL); - gtk_button_set_label (GTK_BUTTON (model_button), "It’s-a-me! ModelButton"); gtk_container_add (GTK_CONTAINER (box), model_button); widget = gtk_combo_box_text_new (); -- 2.30.2